package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_QUARTZ_VALUE"
 *     
*/
public class CcpQuartzValue implements Serializable {

    /** identifier field */
    private String cqvGuid;

    /** nullable persistent field */
    private String cqwGuid;

    /** nullable persistent field */
    private String cqpGuid;

    /** nullable persistent field */
    private String paramValue;

    /** full constructor */
    public CcpQuartzValue(String cqvGuid, String cqwGuid, String cqpGuid, String paramValue) {
        this.cqvGuid = cqvGuid;
        this.cqwGuid = cqwGuid;
        this.cqpGuid = cqpGuid;
        this.paramValue = paramValue;
    }

    /** default constructor */
    public CcpQuartzValue() {
    }

    /** minimal constructor */
    public CcpQuartzValue(String cqvGuid) {
        this.cqvGuid = cqvGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CQV_GUID"
     *         
     */
    public String getCqvGuid() {
        return this.cqvGuid;
    }

    public void setCqvGuid(String cqvGuid) {
        this.cqvGuid = cqvGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CQW_GUID"
     *             length="32"
     *         
     */
    public String getCqwGuid() {
        return this.cqwGuid;
    }

    public void setCqwGuid(String cqwGuid) {
        this.cqwGuid = cqwGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CQP_GUID"
     *             length="32"
     *         
     */
    public String getCqpGuid() {
        return this.cqpGuid;
    }

    public void setCqpGuid(String cqpGuid) {
        this.cqpGuid = cqpGuid;
    }

    /** 
     *            @hibernate.property
     *             column="PARAM_VALUE"
     *             length="250"
     *         
     */
    public String getParamValue() {
        return this.paramValue;
    }

    public void setParamValue(String paramValue) {
        this.paramValue = paramValue;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cqvGuid", getCqvGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpQuartzValue) ) return false;
        CcpQuartzValue castOther = (CcpQuartzValue) other;
        return new EqualsBuilder()
            .append(this.getCqvGuid(), castOther.getCqvGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCqvGuid())
            .toHashCode();
    }

}
